home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Ken Long / Polygondrian-c / What about it? < prev   
Encoding:
Text File  |  1994-12-04  |  1.5 KB  |  41 lines  |  [TEXT/EDIT]

  1. This is a color-only ploygon "mondrian" type demo, which puts up a
  2. random, 5 line ploygon, paints it with random RGB, frames it in
  3. black, kills it, then does the whole cycle again over the top of
  4. the last one (s).
  5.  
  6. There are 5 demo applications made from the same .c file.
  7.  
  8. One does the above - very fast.
  9. The second does it with a 60 tick (one second) delay between draws.
  10. The third fills the screen with black, and does the delay between
  11. draws.
  12.  
  13. I made this from snippets from a few PD source demos.
  14.  
  15. Of course, there are several additional modifications and additions
  16. which could be made for an endless variety of effects.
  17.  
  18. Put a "FillPoly" at the end of Draw_The_Poly and uncomment the
  19. delay in the main loop, and you'll have "Picasso lightning" bolts.
  20. Do that, then put a random tick amount in the delay, so that they
  21. are at uneven intervals (set a range).  turn the lights out, fire
  22. it up, watch it and go crazier than you'd be if you did that.
  23.  
  24. I have only tried this program ON MY LC, and it was fine.  
  25. Your mileage may vary!  The Mac YOU crash may be your own.
  26.  
  27. Some words of caution:
  28.  
  29.     1.    Don't let these polygons poke you - some are very sharp!
  30.     2.    Don't use up too many of your colors - you don't want to
  31.             end up with a B/W Mac!
  32.     3.    Don't watch it run to long - it causes disfunctionality.
  33.     4.    Don't count the 5 pointed oblique stars - there are many.
  34.     5.    Don't try to answer the question "How can something so
  35.             pretty be so ugly?"
  36.     6.    Don't add one more LineTo call- the polygons become Ninja
  37.             throwing stars with poison tips.
  38.     
  39. Enjoy!    (:-)
  40.  
  41. kenlong@netcom.com